package com.yingxin.yxerp.module.sys.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 每日编号
 * @author fanchao
 * @since 2022-01-16
 */

@Data
@ApiModel(value = "BusinessTypeSettingUpdateVo对象", description = "每日编号")
public class BusinessTypeSettingUpdateVo {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id", required = true)
    @NotBlank(message = "id不能为空")
    private String id;

    private String name;

    @ApiModelProperty(value = "前缀 ")
    @Length(max = 30)
    @NotNull(message = "前缀不能为空")
    private String prefix;

    @ApiModelProperty(value = "日期格式 ")
    @Length(max = 30)
    @NotNull(message = "日期格式不能为空")
    private String datePattern;

    @ApiModelProperty(value = "每日编号默认长度")
    @NotNull(message = "每日编号默认长度不能为空")
    private Integer dailyNoLength;

}
